﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CondominioG1.Dominio.Cuota>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>PAGAR Cuota</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>


            <div class="editor-label">
                <%: Html.LabelFor(model => model.Numero) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Numero,  new { @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.Numero) %>
            </div>
                       
            <div class="display-label">Vivienda</div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Vivienda.Codigo,  new { @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.Vivienda.Codigo) %>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Periodo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Periodo, new { @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.Periodo) %>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Importe) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Importe,  new { @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.Importe) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Vencimiento) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Vencimiento,  new { @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.Vencimiento) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.FormaPago) %>
            </div>
            <div class="editor-field">
         <%--       <%: Html.TextBoxFor(model => model.FormaPago) %>
                <%: Html.ValidationMessageFor(model => model.FormaPago) %>--%>

                   <form id="Form1" runat="server">
                <asp:DropDownList ID="cmbTipo" runat="server">
                    <asp:ListItem>Credito</asp:ListItem>
                    <asp:ListItem>Contado</asp:ListItem>
                </asp:DropDownList>
                </form>

            </div>
            
            <div class="editor-label">
                <input type="submit" value="Procesar PAGO >>>" />
            </div>
                           
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a la lista", "Index")%>
    </div>

</asp:Content>
